package com.nuoniu.sibanyun.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nuoniu.sibanyun.entity.SysDictType;
import com.nuoniu.sibanyun.entity.dto.DictTypeSaveDto;
import com.nuoniu.sibanyun.entity.dto.DictTypeSearchDto;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 字典类型表 服务类
 * </p>
 *
 * @author baiqiang
 * @since 2020-05-25
 */
public interface ISysDictTypeService extends IService<SysDictType> {

    /**
     * 分页查询
     * @param dictTypeSearchDto
     * @return
     */
    Page<SysDictType> page(DictTypeSearchDto dictTypeSearchDto);

    /**
     * 新增/ 更新 字段类型
     * @param dictTypeSaveDto
     * @param request
     * @return
     */
    boolean saveOrUpdate(DictTypeSaveDto dictTypeSaveDto, HttpServletRequest request);

    /**
     * 更新字段状态
     * @param id
     * @param status
     * @param request
     * @return
     */
    boolean updateStatus(Long id,Integer status,HttpServletRequest request);

    /**
     * 删除
     * @param id
     * @param request
     * @return
     */
    boolean delete(Long id,HttpServletRequest request);

    /**
     * 获取所有数据
     * @author 小啊刚
     * @date 2021-09-25
     */
    List<DictTypeSaveDto> getDictDataAll();
}
